# frozen_string_literal: true

FactoryBot.define do
  sequence(:schema_seq_name) { |n| "schema name #{n}" }
  sequence(:schema_seq_description) { |n| "schema description #{n}" }

  factory :schema do
    name { generate :schema_seq_name }
    description { generate :schema_seq_description }
    status { Schema::Status::CREATED }

    # status
    trait :created do
      status { Schema::Status::CREATED }
    end
    trait :deployed do
      status { Schema::Status::DEPLOYED }
    end
  end
end
